package com.forenow.demo.demo20;

public class HourlyEmployee extends Employee{
    private int wage;
    private int hour;

    public HourlyEmployee(String name, int number, String mydata,int sal) {
        super(name, number, mydata,sal);
    }

    public HourlyEmployee() {
        super();
    }

    public int getWage() {
        return wage;
    }

    public void setWage(int wage) {
        this.wage = wage;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    @Override
    int earning() {
            return wage*hour;
    }
    public  String toString(){
        return null;
    }
}
